package com.example.demo.core.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

/**
 * Created by czc-pual on 2019/1/4.
 */
public enum  AgeEnum implements IEnum<Integer>{

    ONE(1,"一岁"),
    TWO(2,"二岁"),
    THREE(3,"三岁");

    private int value;
    private String desc;

    AgeEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
